package com.demo.waimai.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 红包发布表
 * </p>
 *
 * @author Helen
 * @since 2020-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Coupon对象", description="红包发布表")
public class Coupon implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "红包ID")
    private String couponId;

    @ApiModelProperty(value = "商铺Id")
    private Integer shopId;

    @ApiModelProperty(value = "红包类型")
    private Integer type;

    @ApiModelProperty(value = "红包标题")
    private String title;

    @ApiModelProperty(value = "需要满足的金额")
    private BigDecimal targetMoney;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountMoney;

    @ApiModelProperty(value = "结束时间")
    private Integer endTime;

    @ApiModelProperty(value = "加入时间")
    private Integer addTime;

    @ApiModelProperty(value = "可以领取的数量")
    private String number;

    @ApiModelProperty(value = "状态")
    private Integer status;


}
